#import <Foundation/Foundation.h>
#import <DGLocationOpenAPI/DGLocationOpenAPI.h>

NS_ASSUME_NONNULL_BEGIN

@interface Location : NSObject<DGLBSLocation>

/// 位置
@property (nonatomic, strong) CLLocation *location;

/// 位置名
@property (nonatomic, copy) NSString *name;

/// 地址
@property (nonatomic, copy) NSString *address;

/// 国家
@property (nonatomic, copy) NSString *country;

/// 国家编码
@property (nonatomic, copy) NSString *countryCode;

/// 省/直辖市
@property (nonatomic, copy, nullable) NSString *province;

/// 省编码
@property (nonatomic, copy, nullable) NSString *provinceCode;

/// 市
@property (nonatomic, copy, nullable) NSString *city;

/// 城市编码
@property (nonatomic, copy, nullable) NSString *cityCode;

/// 区
@property (nonatomic, copy, nullable) NSString *district;

/// 区域编码
@property (nonatomic, copy, nullable) NSString *adcode;

/// 街道名称
@property (nonatomic, copy, nullable) NSString *street;

/// 门牌号
@property (nonatomic, copy, nullable) NSString *number;

/// 邮编
@property (nonatomic, copy, nullable) NSString *postCode;

/// 距离（单位：m）
@property (nonatomic, assign) NSInteger distance;

/// 地图截图
@property (nonatomic, strong, nullable) UIImage *snapshotImage;

/// 采集时间
@property (nonatomic, copy) NSString * collectTimeInterval;

/// 定位时间
@property (nonatomic, copy) NSDate *dateTime;

@end

NS_ASSUME_NONNULL_END
